Add linear constraint config to multi-poses-execution-switch#17
Open
Add linear constraint config to multi-poses-execution-switch#17
Conversation
When configured, forces the arm to move in a straight line between poses by passing a LinearConstraint to the motion planner. This gives more predictable end-effector paths for workflows like coffee brewing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
ale7714
approved these changes
Feb 27, 2026
jckras
approved these changes
Feb 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional
linear_constraintconfiguration to the multi-poses-execution-switch component, allowing the arm to be constrained to straight-line movements between poses. This gives more predictable end-effector paths for workflows like coffee brewing where wild joint-space trajectories are undesirable.Changes
LinearConstraintConfstruct and optionallinear_constraintfield onConfig. When set, amotionplan.LinearConstraintis passed to the motion planner viaMoveReq.Constraints.go.viam.com/utilsto a direct dependency (result ofgo mod tidy).linear_constraintconfig field, add a sub-table for its fields, and update the example configuration.Testing
go build ./...linear_constraintwith tolerance values and verify the arm moves in a straight line between posesClaude Code Prompts Used